package com.sunday.common.core.utils;

/**
 * class 工具类
 *
 * @author zsy
 * @since 2022/10/10
 */
public class ClassUtils {

    /**
     * 返回与类或关联的{@code Class}对象
     *
     * @param className
     * @return {@link Class<?>}
     */
    public static Class<?> forName(String className) {
        try {
            return Class.forName(className);
        } catch (ClassNotFoundException e) {
            throw new RuntimeException("Cannot find class: " + className, e);
        }
    }

}
